﻿{extend name="public:base" /}{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css">
{/block}{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">用户</label>
                                <div class="col-sm-3">
                                    <select name="user_id" lay-search="">
                                        <option value="0"></option>
                                        {volist name="user_list" id="vo"}
                                        <option value="{$vo.id}" {$vo.id == $info.user_id ? 'selected' : ''}>{$vo.username} / {$vo.mobile}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">车辆</label>
                                <div class="col-sm-3">
                                    <select name="car_id" lay-search="">
                                        <option value="0"></option>
                                        {volist name="car_list" id="vo"}
                                        <option value="{$vo.id}" {$vo.number == $info.number ? 'selected' : ''}>{$vo.number} / {$vo.model}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">地点</label>
                                <div class="col-sm-3">
                                    <input type="text" name="address" class="form-control" value="{$info.address}" placeholder="请输入地点">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">时间</label>
                                <div class="col-sm-3">
                                    <input placeholder="请选择日期" type="text" name="time" value="{$info.time}" class="form-control form-control-lg time" readonly>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">行为</label>
                                <div class="col-sm-3">
                                    <input type="text" name="behavior" class="form-control" value="{$info.behavior}" placeholder="请输入行为">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">依据</label>
                                <div class="col-sm-3">
                                    <input type="text" name="according" class="form-control" value="{$info.according}" placeholder="请输入依据">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">罚款</label>
                                <div class="col-sm-3">
                                    <input type="text" name="money" class="form-control" value="{$info.money}" placeholder="请输入罚款">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">记分</label>
                                <div class="col-sm-3">
                                    <input type="text" name="score" class="form-control" value="{$info.score}" placeholder="请输入记分">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form"><label class="col-sm-1 col-form-label">状态</label>
                                <div class="col-lg-3">
                                    <input type="radio" name="status" value="1" title="待处理" {$info.status != 2 ? 'checked' : ''}>
                                    <input type="radio" name="status" value="2" title="已处理" {$info.status == 2 ? 'checked' : ''}>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/cropper-img-mask" cropper_uploaded_img_ids="cropper_uploaded_img_ids" cropper_uploaded_img_paths="cropper_uploaded_img_paths" crop_preview_box="crop-preview-box" /}
{include file="public/preview-img-mask" swiper-id="cropper-preview" /}
{/block}


{block name="js"}
<script src="__STATIC__/jquery/jquery-3.1.1.min.js"></script>
<script src="/static/laydate/laydate.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script>
    laydate.render({
        elem: '.time', //指定元素
        type: 'datetime'
    });
</script>
{/block}